<?php
$ArSetores = Dracosys::getSessionValue(SESSION_INTERFACE, 'SectorList');
$SetorSelected = Dracosys::getSessionValue(SESSION_INTERFACE, 'SectorSelected');

if( !empty($ArSetores) ):
    foreach ($ArSetores as $Setor):
        $StSelected = !empty($SetorSelected) && $Setor->equals($SetorSelected) ? 'selected="selected"': '';
        ?>
        <option value="<?=$Setor->getIDSetor()?>" <?=$StSelected?>><?=$Setor->getStNome()?></option>
    <?php
    endforeach;
endif;?>
